export function updateFavicon(url: string) {
  const linkElement = document.querySelector<HTMLLinkElement>(
    'link[rel="shortcut icon"]'
  );
  if (linkElement) {
    linkElement.href = url;
  } else {
    const newLinkElement = document.createElement("link");
    newLinkElement.rel = "shortcut icon";
    newLinkElement.href = url;
    document.head.appendChild(newLinkElement);
  }
}
